define(function() {
	return {
		caseDetailInfoProxy : function(sendData, successCallBackFn, failCallBackFn) {
			// 请求代理查询案情详情
			yhc.biz("queryCaseDetail","",sendData,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						resultData.caseDetailData = "";
    						resultData.caseDetailData = JSON.parse(tempData.body);
    						successCallBackFn();
    					}else{
    						failCallBackFn(tempData.errorMsg);
    					}
    				}else{
    					failCallBackFn("连接超时");
    				}
    		 	}, 
    		 function(){});
		},
		
		queryMyLoanData : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理查询我的贷款概要
			yhc.biz("queryLoanApplyOutline",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		queryMyLoanList : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理查询我的贷款列表
			yhc.biz("queryLoanApplyList",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		queryMyIssueList : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理查询我的贷款列表
			yhc.biz("queryCaseReleaseList",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		queryMyIssueOutLine : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理查询我的发布概要
			yhc.biz("queryCaseReleaseOutline",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		delMyIssueRelease : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理查询我的发布概要
			yhc.biz("cancelCaseRelease",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		changeMyIssueRelease : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理修改我的发布概要
			yhc.biz("changeCaseRelease",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		changeLoanApplyfor : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理修改我的贷款申请
			yhc.biz("changeLoanApply",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		cancelMyLoanApplyfor : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理取消我的贷款申请
			yhc.biz("cancelLoanApply",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		queryRepayRecordDetail : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理还款明细
			yhc.biz("queryRepayRecord",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		agreeApproveLoan : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理同意申请贷款
			yhc.biz("approveLoan",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		getReconmendList : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理我的推荐列表
			yhc.biz("queryLawyerLoanApplyList",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		cancelApplyMyCase : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理取消我的案件
			yhc.biz("cancelApplyCase",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		changeApplyMyCase : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代编辑我的案件
			yhc.biz("changeApplyCase",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		queryMyCaseApplyOutline : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理查询我的案件
			yhc.biz("queryCaseApplyOutline",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		queryMyCaseApplyList : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理查询我的案件列表
			yhc.biz("queryCaseApplyList",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		checkRegisterMobile : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理查询手机号是否注册过
			yhc.biz("checkMobile",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		getAuthCode : function(sendData, successCallBackFn, failCallBackFn) {
			//请求代理获取验证码
			yhc.sendValidCode(sendData,
					//回调函数
					function(ret){
		   			if(ret != "" && ret != null && ret != 'null'){
		   				var tempData = JSON.parse(ret);
		   				if(tempData.isSuccess === "T"){
		   					successCallBackFn(tempData);
		   				}
		   			}
		   	}, function(){});
		},
		
		submitFindPwd : function(sendData, successCallBackFn, failCallBackFn) {
			//请求代理提交找回密码信息
			yhc.findPwd(sendData,
    				function(ret){
    					if(ret != "" && ret != null && ret != 'null'){
    						var tempData = JSON.parse(ret);
    						if(tempData.isSuccess == 'T'){
    							successCallBackFn(tempData);
    						}else{
    							failCallBackFn(tempData);
    						}
    					}else{
    						failCallBackFn("");
    					}
    			 	}, 
    			 	function(){});
		},
		
		userLogoutSystem : function(sendData, successCallBackFn, failCallBackFn) {
			//请求代理用户退出登录
			yhc.userLogout(sendData,
    				function(ret){
    					if(ret != "" && ret != null && ret != 'null'){
    						var tempData = JSON.parse(ret);
    						if(tempData.isSuccess == 'T'){
    							successCallBackFn(tempData);
    						}else{
    							failCallBackFn(tempData);
    						}
    					}else{
    						failCallBackFn("");
    					}
    			 	}, 
    			 	function(){});
		},
		
		userLoginSystem : function(sendData, successCallBackFn, failCallBackFn) {
			//请求代理用户登录系统
			yhc.userLogin(sendData,
    				function(ret){
    					if(ret != "" && ret != null && ret != 'null'){
    						var tempData = JSON.parse(ret);
    						if(tempData.isSuccess == 'T'){
    							localStorage.setItem("fireFlySessionId",tempData.sessionId+"");
    							successCallBackFn(tempData);
    						}else{
    							failCallBackFn(tempData);
    						}
    					}else{
    						failCallBackFn("");
    					}
    			 	}, 
    			 	function(){});
		},
		
		changeUserPwd : function(sendData, successCallBackFn, failCallBackFn) {
			//请求代理更改用户密码
			yhc.changePwd(sendData,
    				function(ret){
    					if(ret != "" && ret != null && ret != 'null'){
    						var tempData = JSON.parse(ret);
    						if(tempData.isSuccess == 'T'){
    							successCallBackFn(tempData);
    						}else{
    							failCallBackFn(tempData);
    						}
    					}else{
    						failCallBackFn("");
    					}
    			 	}, 
    			 	function(){});
		},
		
		registerUser : function(sendData, successCallBackFn, failCallBackFn) {
			//请求代理用户注册
			yhc.userReg(sendData,
    				function(ret){
    					if(ret != "" && ret != null && ret != 'null'){
    						var tempData = JSON.parse(ret);
    						if(tempData.isSuccess == 'T'){
    							successCallBackFn(tempData);
    						}else{
    							failCallBackFn(tempData);
    						}
    					}else{
    						failCallBackFn("");
    					}
    			 	}, 
    			 	function(){});
		},
		
		queryRecommandCaseList : function(headerInfo, successCallBackFn, failCallBackFn) {
			//请求代理感兴趣列表
			yhc.biz("queryRecommandCase",headerInfo,"",
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		queryMsgContent : function(headerInfo, successCallBackFn, failCallBackFn) {
			//请求代理获取信息列表
			yhc.biz("getMessageList",headerInfo,"",
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		subUserExt4Lawyer : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理提交律师用户信息
			yhc.biz("userExt4Lawyer",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		agencyApplyProxy : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理申请代理
			yhc.biz("agencyApply",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		subUserExt4Pt : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理提交普通用户信息
			yhc.biz("userExt",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		vcAgentApply : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理提交风险头资料
			yhc.biz("vcAgentApply",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		vcAgentRcRecords : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理提交风险投评估
			yhc.biz("vcAgentRcRecord",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		loanRcRecords : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理提交免息贷评估
			yhc.biz("loanRcRecord",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		npaApply : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理提交不良资产
			yhc.biz("npaApply",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		queryVcAgentApplyList : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理查询风险投列表
			yhc.biz("queryVcAgentApplyList",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		queryNpaApplyList : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理查询风险投列表
			yhc.biz("queryNpaApplyList",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		contractSignVcAgent : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理签约状态
			yhc.biz("contractSignVcAgent",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		getMyCollectList : function(headerInfo, successCallBackFn, failCallBackFn) {
			//请求代理获取收藏夹信息
			yhc.biz("getMyFavorite",headerInfo,"",
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		delMyCollect : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理删除收藏夹
			yhc.biz("delFavorite",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		addMyCollect : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理添加收藏夹
			yhc.biz("addFavorite",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		queryFunsList : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理查询粉丝
			yhc.biz("queryFunsUser",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		submitApplyCase : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//提交申请案件到代理
			yhc.biz("applyCase",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		issueMyCase : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//发布案源
			yhc.biz("caseRelease",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		searchCaseList : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//查找案源
			yhc.biz("searchCase",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		queryAllCaseList : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//查询案件列表
			yhc.biz("queryCaseList",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		checkLsInviteCode : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//验证律师推荐码
			yhc.biz("checkInviteCode",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		lawyerUserHomePageQuery : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//律师首页查询
			yhc.biz("lawyerUserHomePageQuery",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		userHomePageQuery : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//普通用户首页查询
			yhc.biz("userHomePageQuery",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		submitLoanApply : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//提交贷款申请
			yhc.biz("loanApply",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		changeMobileNo : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//修改账号
			yhc.biz("changeMobileNo",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		searchLsData : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//查找律师
			yhc.biz("queryLawyer",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		queryAmtData : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//查询发放贷款金额
			yhc.biz("queryAmtInfo",headerInfo,"",
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		autoLogin : function(headerInfo, bizInfo, successCallBackFn, failCallBackFn) {
			//自动登录
			yhc.biz("autoLogin",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		},
		
		getOrderId : function(headerInfo,bizInfo, successCallBackFn, failCallBackFn) {
			//请求代理下订单
			yhc.biz("repay",headerInfo,bizInfo,
    			function(ret){
    				if(ret != "" && ret != null && ret != '{}' && ret != 'null'){
    					var tempData = JSON.parse(ret);
    					if(tempData.isSuccess == "T"){
    						successCallBackFn(tempData);
    					}else{
    						failCallBackFn(tempData);
    					}
    				}else{
    					failCallBackFn("");
    				}
    		 	}, 
    		 function(){});
		}
		
	}
});
